package vis.app;

public class EventControl {
	String type;
	Object data;
	Object[] params;

	public EventControl() {
		this.type = "";
		this.data = null;
		this.params = null;
	}

	public EventControl(String type, Object data, Object[] params) {
		this.type = type;
		this.data = data;
		this.params = params;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public void setParams(Object[] params) {
		this.params = params;
	}

	public String getType() {
		return this.type;
	}

	public Object getData() {
		return data;
	}

	public Object[] getParams() {
		return params;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder("EventControl{");
		sb.append(this.type).append(",");
		sb.append(this.data.toString()).append("}");
		return sb.toString();
	}
}
